package org.locker.domain.bo;

import org.locker.domain.DeviceOperateLog;
import org.locker.common.mybatis.core.domain.BaseEntity;
import org.locker.common.core.validate.*;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 用户操作记录业务对象 lk_device_operate_log
 *
 * @author winnie
 * @date 2023-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceOperateLog.class, reverseConvertGenerate = false)
public class DeviceOperateLogBo extends BaseEntity {

    /**
     * 操作ID
     */
    @NotNull(message = "操作ID不能为空", groups = { EditGroup.class })
    private Long userOperateId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 场地ID
     */
    @NotNull(message = "场地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long positionId;

    /**
     * 场地ID
     */
    private Long deviceId;
    /**
     * 格子ID
     */
    @NotNull(message = "格子ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deviceGridId;

    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderNo;

    /**
     * 格子状态：open 开锁,close 关闭
     */
    @NotBlank(message = "格子状态：open 开锁,close 关闭不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
